package com.reactim.message.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * 性能监控配置类
 * 从ReactimConfig中获取性能监控相关配置
 * 保持向后兼容性的适配器类
 */
@Configuration
@Data
public class PerformanceConfig {
    
    @Autowired
    private ReactimConfig reactimConfig;
    
    /**
     * 获取性能报告配置
     */
    public ReactimConfig.PerformanceProperties.ReportProperties getReport() {
        return reactimConfig.getPerformance().getReport();
    }
}